package pathways.Database.Implementation;

/**
 * Title:        Pathways
 * Description:  Pure Java version of the Pathways Project.
 * Copyright:    Copyright (c) 2002
 * Company:      Ants Technologies
 * @author Veejay Sani
 * @version 1.0
 */

import pathways.Database.Interfaces.IDBConnection;

public class CDatabase
{

  public CDatabase(IDBConnection connection)
  {
    // Pre: connection must be already made
    
    conn = connection;
    select = new CDBSelect(conn);
    update = new CDBUpdate(conn,select);
  }
  
  public IDBConnection getConnection()
  {
    return conn; 
  }
  
  public void setConnection(IDBConnection connection)
  {
    conn = connection;
  }
  
  public CDBSelect getSelect()
  {
    return select;
  }
  
  public CDBUpdate getUpdate()
  {
    return update;
  }
    
  private IDBConnection conn;
  private CDBSelect select;
  private CDBUpdate update;
}